]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Use better window check option in existing code
authorSundeep Mediratta <smedius@gmail.com>
Sun, 23 Jun 2024 19:12:34 +0000 (15:12 -0400)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 28 Jun 2024 11:35:16 +0000 (11:35 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3386>
(cherry picked from commit 46c74acb1be817a2fee3c8def29627cea618b144)

js/ui/workspace.js

index 147b843ded6325f72bdf612e674589aa14263366..09fe3abdb4cac4aacbfeadc0c7c938bbe7cfc71b 100644 (file)
@@ -1202,7 +1202,7 @@ class Workspace extends St.Widget {
 
         // We might have the window in our list already if it was on all workspaces and
         // now was moved to this workspace
-        if (this._lookupIndex(metaWin) !== -1)
+        if (this.containsMetaWindow(metaWin))
             return;
 
         if (!this._isMyWindow(metaWin))